<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<script src="../vue.js"></script>

<body>
  // 父传子
  <div id="app">
    <my-son name="title" title="parent"></my-son>
  </div>
  <script>
    Vue.component("my-son", {
      props: ["name", "title"],
      template: "<div>我是子组件{{name}}{{title}}</div>"
    })
    const vm = new Vue({
      el: "#app"
    })
  </script>
</body>

</html>